/* syntax.cpp
 */

#include <iostream>              /* for console i/o */
#include <iondrive/glsl.h>
using namespace iondrive::glsl;

int main()
{
	float myLen = 0.0f;

	// print to stdout
	std::cout << "Starting checks... " << std::endl;
	
	// begin syntax checks

	/////////////////////012345678901234
	for (long long l=0;l<2000000LL;l++)
	{
		// 1) create 3x3-float matrix and 3-float vector.
		vec3 myVector;
		mat3 myMatrix;
		vec3 myOutput;


		myVector = myVector + (-myVector * 2.0f)/3.14f;
		myVector.normalize();




		
		myOutput = myMatrix * myVector;
		
		myLen = length(myOutput) + myOutput.dot(myOutput);
	}

	
	// exit program
	std::cout << "done" << std::endl;

	return myLen > 0.0f ? 1 : 0;
}

